#ifndef MUSICLIST_H
#define MUSICLIST_H

#include <QAbstractListModel>
#include <QVariant>
#include <QMap>
#include <QMediaPlaylist>

class PlayListModel : public QAbstractListModel
{
public:
    explicit PlayListModel(QObject *parent=0);
    virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
    Qt::ItemFlags flags(const QModelIndex &index) const;
    QModelIndex index(int row, int column, const QModelIndex &parent) const;
    virtual int rowCount(const QModelIndex &parent) const;
    virtual QVariant data(const QModelIndex &index, int role) const;
    void setPlayList(QMediaPlaylist *playlist);
signals:

public slots:
private:
    QMediaPlaylist *m_playList;
    QMap<short,QVariant> musicMap;
};
#endif // MUSICLIST_H
